package com.pubinfo.passbook.common.service.master;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pubinfo.passbook.common.entity.TRuleFormula;
import com.pubinfo.passbook.common.model.dto.rule.RuleFormulaParam;
import com.pubinfo.passbook.common.model.vo.base.JsonResult;

import java.util.Map;

/**
 *
 */
public interface TRuleFormulaService extends IService<TRuleFormula> {
  boolean saveFormula(TRuleFormula formula);

  JsonResult<String> updateRuleFormula(TRuleFormula formula);

  
  /**
   * 根据区县id查询公式集合
   *
   * @param districtId
   * @return
   */
  Map<String, TRuleFormula> findFormulaByDistrictId(String districtId);
  
  IPage<TRuleFormula> selectRuleFormula(RuleFormulaParam param);
}
